package com.tensin.mall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tensin.common.utils.PageUtils;
import com.tensin.mall.ware.vo.MergeVo;
import com.tensin.mall.ware.entity.PurchaseEntity;
import com.tensin.mall.ware.vo.PurchaseDoneVo;

import java.util.List;
import java.util.Map;

/**
 * 采购信息
 *
 * @author tensin
 * @email 56793079@qq.com
 * @date 2022-07-12 00:16:40
 */
public interface PurchaseService extends IService<PurchaseEntity> {

    PageUtils queryPage(Map<String, Object> params);

    //查询未被领取的采购单（新建+已分配）
    PageUtils queryPageUnreceive(Map<String, Object> params);


    //创建采购单
    void mergePuerchase(MergeVo mergeVo);

    //领取采购单
    void received(List<Long> ids);

    //完成采购需求
    void done(PurchaseDoneVo doneVo);
}

